Harmonic parameterization by electrostatics